<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

<div th:text="${msg}" style="color: red"></div>
      <form th:action="@{/userlogin}">

          <input type="text" name="name">
          <input type="password" name="pass">
          <input type="submit" value="submit">

      </form>
</body>
</html>